ScxV6Aggregate.Class Method

Class name of the aggregate

Remarks

The property can be read to determine the class name of the aggregate, and also written to set the class of a multiple-choice aggregate.

Example:

The following example written in VB.NET shows the Class property being used to retrieve the class of the currently enabled aggregate of the modbus channel secondary port, and then set the class property to change the connection point to Serial.

Dim Svr As ScxV6DbClient.ScxV6Server

Dim Obj As ScxV6DbClient.ScxV6Object

Dim Aggr As ScxV6DbClient.ScxV6Aggregate

' Connect to the server

Svr = New ScxV6DbClient.ScxV6Server()

Svr.Connect("MAIN", "", "")

' Find a folder on the system

Obj = Svr.FindObject("Modbus Channel")

' Get the historic aggregate from the object

Aggr = Obj.Aggregate("ConnectionPoint2")

' Display the current class name

System.Console.WriteLine(Aggr.Class)

' Set the class of the connection point to Serial

Aggr.Class = "CIOConPointSerial"

' Disconnect

Svr.Disconnect()


Disclaimer

Geo SCADA Expert 2020